package com.teama4.shop.controller;

import com.teama4.shop.domain.Commodity;
import com.teama4.shop.service.SearchServiceExt;
import com.teama4.shop.service.ServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Controller
@RequestMapping("/search")
public class SearchController {
    @Autowired
    SearchServiceExt searchServiceExt;

    @RequestMapping("searchedByBuyCount")
    public String searchedByBuyCount(HttpServletRequest req,String name) {
//        List<Commodity> commodities = searchServiceExt.searchedByBuyCount(name);

        return "homeFramework/search3";
    }
}
